using System;
using System.Collections.Generic;

namespace DataAccess.Entities
{
	public class User
	{
	    public User()
		{
			this.Comments = new List<Comment>();
			this.UserTracks = new List<UserTrack>();
		}

		public int Id { get; set; }
		public string Name { get; set; }
		public string Email { get; set; }
		public string LoginName { get; set; }
		public string Password { get; set; }
		public int TotalMark { get; set; }
		public int Role { get; set; }
		public System.DateTime CreateDate { get; set; }
		public System.DateTime UpdateDate { get; set; }
		public virtual ICollection<Comment> Comments { get; set; }
		public virtual ICollection<UserTrack> UserTracks { get; set; }
	}
}

